package com.android.dumiaogou.model.group;

import java.util.List;

/**
 * Created by Administrator on 2016/9/2.
 */
public class SortNationData {


    /**
     * data : [{"id":"1","catname":"日本馆","thumb":"http://192.168.1.47//upload/images/gallery/0/h/18_src.jpg"}]
     * flag : true
     * code : 0
     * msg : 操作成功
     * time : 1472805408
     */

    private boolean flag;
    private int code;
    private String msg;
    private int time;
    /**
     * id : 1
     * catname : 日本馆
     * thumb : http://192.168.1.47//upload/images/gallery/0/h/18_src.jpg
     */

    private List<Nationdata> data;

    @Override
    public String toString() {
        return "{" + "\"data\"" + ":" + data +
                "," + "\"flag\"" + ":" + flag +
                "," + "\"code\"" + ":" + code +
                "," + "\"msg\"" + ":" + "\"" + msg + "\"" +
                "," + "\"time\"" + ":" + time + "}";

    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public List<Nationdata> getData() {
        return data;
    }

    public void setData(List<Nationdata> data) {
        this.data = data;
    }

    public static class Nationdata {
        private String id;
        private String catname;
        private String thumb;

        @Override
        public String toString() {
            return "{" +
                    "\"id\"" + ":" + "\"" + id + "\"" + ","
                    + "\"catname\"" + ":" + "\"" + catname + "\"" + ","
                    + "\"thumb\"" + ":" + "\"" + thumb + "\""
                    + "}";

        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCatname() {
            return catname;
        }

        public void setCatname(String catname) {
            this.catname = catname;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }
    }
}
